package vlms.bean;

/**
*
* This classes is the Data Transfer Object(Value Object) defination for the entity account
*
*/

public class Account 
{
	private String username;
	private String password;
	private int personid;


	public Account(){}
	public Account(String username ,String password ,int personid){
		this.username = username;
		this.password = password;
		this.personid = personid;
	}

	public void setUsername(String username ){
		 this.username =username;
	}
	public String getUsername(){
		 return(username);
	}
	public void setPassword(String password ){
		 this.password =password;
	}
	public String getPassword(){
		 return(password);
	}
	public void setPersonid(int personid ){
		 this.personid =personid;
	}
	public int getPersonid(){
		 return(personid);
	}
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		Account account = (Account) obj;
		boolean result = false;
		if (this == obj || username.equalsIgnoreCase(account.getUsername()))
		{
			result = true;
		}
		return result;
	}
	
}
